package com.momo.cloudspringserver.controller;

import com.momo.cloudspringserver.feign.OrderService;
import com.momo.cloudspringserver.utils.JSONResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: momo-cloud
 * @description: TODO
 * @author: Jie Li
 * @create: 2019-07-18 22:53
 **/
@RestController
@RequestMapping(value = "/platform/", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
@Slf4j
public class OrderController {
    @Autowired
    private OrderService orderService;

    @RequestMapping("/getOrder/v1")
    public JSONResult getOrder() {
        JSONResult order = orderService.getOrder();
        return order;
    }
}
